<template>
  <view class="task-card">
    <view class="card-title jz">
      <view class="left-num">任务编号：{{item.transportTaskId}}</view>
      <view class="right-status jz">已延迟</view>
    </view>
    <view class="fast-mail">
      <view class="start-mail">
        <view class="sricle-box"><text class="start-text">起</text></view>
        <view class="mail-address">{{item.startAddress}}</view>
      </view>
      <view class="end-mail">
        <view class="sricle-box"><text class="end-text">止</text></view>
        <view class="mail-address">{{item.endAddress}}</view>
      </view>
    </view>
    <view class="card-footer jz">
      <view class="footer-time jz">
          <text>提货时间</text>
          <text class="tack-time">2022.05.04 13:00</text>
      </view>
      <view class="register-btn">
        回车登记
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: '',
  components: {},
  props:{
    item:{
      type:Object,
    }
  },
  created() {
  },
  mounted() {},
  onLoad() {
  },
  methods: {}
};
</script>

<style lang="scss">
.jz {
  display: flex;
  justify-content: center;
  align-items: center;
}
.task-card {
  background-color: #fff;
  border-radius: 10px;
  margin: 15px;
  padding-left: 20px;
  padding-right: 13px;
  .card-title {
    width: 100%;
    height: 50px;
    justify-content: space-between;
    .left-num {
      font-weight: 500;
      font-size: 16px;
      color: #2a2929;
      white-space: nowrap; 
      overflow: hidden;
      text-overflow: ellipsis; 
    }
    .right-status {
      font-size: 12px;
      width: 52px;
      height: 22px;
      border-radius: 11px;
      border: 1px solid #ef4f3f;
      color: #ef4f3f;
    }
  }
  .fast-mail {
    .start-mail,
    .end-mail {
      display: flex;
    }
    .start-mail{
      &::before{
        content: '';
        position: relative;
        height: 22px;
        left: 11px;
        top: 25px;
        border-right: 1px dashed #D9D9D9;
      }
    }
    .sricle-box {
      width: 22px;
      height: 22px;
      .start-text{
        background-color: #2A2929;
      }
      .end-text{
        background-color: #EF4F3F;
      }
      text{
        display: block;
        border-radius: 50%;
        text-align: center;
        line-height: 22px;
        width: 22px;
        height: 22px;
        font-weight: 500;
        font-size: 12px;
        color: #FFFFFF;
      }
    }
    .mail-address {
      margin-left: 12px;
      font-weight: 400;
      font-size: 14px;
      height: 50px;
      color: #818181;
      letter-spacing: 0.16px;
    }
  }
  .card-footer{
    justify-content: space-between;
    height: 73px;
    border-top: 1px solid #EEEEEE;
    .footer-time{
      display: flex;
      align-items: start;
      flex-direction: column;
      color: #818181ff;
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 0.16px;
      .tack-time{
         color: #2a2929ff;
         margin-top: 2px;
      }
    }
    .register-btn{
      width: 80px;
      height: 32px;
      font-size: 14px;
      text-align: center;
      line-height: 32px;
      background-color: #EF4F3F;
      border-radius: 16px;
      font-weight: 400;
      font-size: 14px;
      color: #FFFFFF;
      letter-spacing: 0.16px;
    }
  }
}
</style>
